import request from '@/utils/request';

export async function getPurchaseOrderByPage (params: any) {
    return request('/api/material/getPurchaseOrderByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addPurchaseOrder (params: any) {
    return request('/api/material/addPurchaseOrder', {
    method: 'POST',
    data: params,
  });
}

export async function updatePurchaseOrder (params: any) {
    return request('/api/material/updatePurchaseOrder', {
    method: 'POST',
    data: params,
  });
}

export async function delPurchaseOrder (params: any) {
    return request('/api/material/delPurchaseOrder', {
    method: 'POST',
    data: params,
  });
}


export async function exportPurchaseOrder(params: any) {
    return request('/api/material/exportPurchaseOrder', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getPurchaseOrderByPage, addPurchaseOrder, updatePurchaseOrder, delPurchaseOrder, exportPurchaseOrder }
